package com.itheima.xxl.task;

import com.xxl.job.core.handler.annotation.XxlJob;
import org.springframework.stereotype.Component;

import java.util.Date;

/**
 * @author 黑马程序员
 * @Company http://www.ithiema.com
 * @Version 1.0
 */
@Component
public class XXLJobDemo {


    @XxlJob("xxlJobDemo")
    public void run(){
        System.out.println("分布式任务调度：" + new Date());
    }
}
